package com.unicom.office.func;

import com.unicom.office.runtime.OfficeRuntime;
import com.unicom.office.type.TextRangeTypeItem;
import com.unicom.office.type.TypeItem;
import com.unicom.office.unit.OfficeUnit;
import com.unicom.office.unit.TextRangeUnit;

public class BlankTextRangeFunc extends FuncBase {
    private BlankTextRangeFunc(){

    }

    public Object run(OfficeRuntime officeRuntime) {
        TextRangeUnit textRangeUnit = new TextRangeUnit();
        textRangeUnit.setText("", false);
        return textRangeUnit;
    }

    public void runForMatch(OfficeUnit unit, OfficeRuntime officeRuntime) {

    }

    public TypeItem getType() {
        return TextRangeTypeItem.INSTANCE;
    }

    public static final BlankTextRangeFunc INSTANCE = new BlankTextRangeFunc();
}
